package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PropertyNoticeReadMapper;
import com.ruoyi.system.domain.PropertyNoticeRead;
import com.ruoyi.system.service.IPropertyNoticeReadService;

/**
 * 通知阅读记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
@Service
public class PropertyNoticeReadServiceImpl implements IPropertyNoticeReadService 
{
    @Autowired
    private PropertyNoticeReadMapper propertyNoticeReadMapper;

    /**
     * 查询通知阅读记录
     * 
     * @param readId 通知阅读记录主键
     * @return 通知阅读记录
     */
    @Override
    public PropertyNoticeRead selectPropertyNoticeReadByReadId(Long readId)
    {
        return propertyNoticeReadMapper.selectPropertyNoticeReadByReadId(readId);
    }

    /**
     * 查询通知阅读记录列表
     * 
     * @param propertyNoticeRead 通知阅读记录
     * @return 通知阅读记录
     */
    @Override
    public List<PropertyNoticeRead> selectPropertyNoticeReadList(PropertyNoticeRead propertyNoticeRead)
    {
        return propertyNoticeReadMapper.selectPropertyNoticeReadList(propertyNoticeRead);
    }

    /**
     * 新增通知阅读记录
     * 
     * @param propertyNoticeRead 通知阅读记录
     * @return 结果
     */
    @Override
    public int insertPropertyNoticeRead(PropertyNoticeRead propertyNoticeRead)
    {
        return propertyNoticeReadMapper.insertPropertyNoticeRead(propertyNoticeRead);
    }

    /**
     * 修改通知阅读记录
     * 
     * @param propertyNoticeRead 通知阅读记录
     * @return 结果
     */
    @Override
    public int updatePropertyNoticeRead(PropertyNoticeRead propertyNoticeRead)
    {
        return propertyNoticeReadMapper.updatePropertyNoticeRead(propertyNoticeRead);
    }

    /**
     * 批量删除通知阅读记录
     * 
     * @param readIds 需要删除的通知阅读记录主键
     * @return 结果
     */
    @Override
    public int deletePropertyNoticeReadByReadIds(Long[] readIds)
    {
        return propertyNoticeReadMapper.deletePropertyNoticeReadByReadIds(readIds);
    }

    /**
     * 删除通知阅读记录信息
     * 
     * @param readId 通知阅读记录主键
     * @return 结果
     */
    @Override
    public int deletePropertyNoticeReadByReadId(Long readId)
    {
        return propertyNoticeReadMapper.deletePropertyNoticeReadByReadId(readId);
    }
}
